// ACE_Log.cpp : Defines the entry point for the console application.
//
#include <ace/Log_Msg.h>
#include <fstream>
#include <string>
#include <list>

using namespace std;
int main(int argc, char* argv[])
{
    list<int> list1;
    list1.push_back(0);
    list1.push_back(1);
    list1.push_back(2);
    list1.push_back(3);

    list<int> newList;
    newList.assign(list1.begin()+1, list1.end());
    for (int i = 0; i< newList.size();++i)
    {
        printf("%d\n",newList[i]);
    }
    //test done;
    getchar();

	//ACE_LOG_MSG->open(argv[0], ACE_Log_Msg::STDERR);	//SYSLOG | 

	ACE_OSTREAM_TYPE *output = new ofstream ("ace.log");
    ACE_LOG_MSG->msg_ostream(output, false);
	ACE_LOG_MSG->open ("ace_training", ACE_Log_Msg::OSTREAM | ACE_Log_Msg::STDERR | ACE_Log_Msg::VERBOSE_LITE);
	


	ACE_DEBUG((LM_DEBUG, ACE_TEXT("ACE Log Message. ")));


	getchar();
	return 0;
}

